<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
class PHPExcel_Shared_Escher_DgContainer_SpgrContainer
{
    private $parent;
    private $children = [];
    public function setParent($parent)
    {
        $this->parent = $parent;
    }
    public function getParent()
    {
        return $this->parent;
    }
    public function addChild($child)
    {
        $this->children[] = $child;
        $child->setParent($this);
    }
    public function getChildren()
    {
        return $this->children;
    }
    public function getAllSpContainers()
    {
        $allSpContainers = [];
        foreach ($this->children as $child) {
            if($child instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) {
                $allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers());
            } else {
                $allSpContainers[] = $child;
            }
        }
        return $allSpContainers;
    }
}

?>